package com.atguigu.dao;

import com.atguigu.pojo.Delivery;
import com.atguigu.pojo.DeliveryList;

import java.util.List;

public interface DeliveryDao {
    /**
     * 将查询到的快递信息存入List返回
     * @param id 用户的id
     * @return 存储Delivery的List集合
     */
    List<DeliveryList> getAllDeliveryById(Integer id);

    /**
     * 根据id删除快递信息
     * @param id 要删除的快递id
     */
    void removeDeliveryById(Integer id);


    Delivery addDelivery(String username, Integer id, Integer companyId, String phone, String address, String date, Integer status);

    Delivery getDeliveryById(Integer integer);

    void updateDeliveryById(Integer integer,String deliveryName,Integer companyId,String phone,String address,String date,Integer status);
}
